Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature(ripple): Add support for non-standard currency code #4235

Merged
merged 3 commits into from
Jan 27, 2025

Conversation

satoshiotomakan
Copy link
Collaborator

Description

Currently, WalletCore supports ISO-4217 currency codes only (3 symbols, e.g. USD) when generating transactions (TrustSet, TokenPayment).
This PR adds support for non-standard currency code like 524C555344000000000000000000000000000000 which requires a different serialization.

Ref: https://xrpl.org/docs/references/protocol/binary-format#currency-codes

How to test

Run C++ tests

Types of changes

Checklist

  • Create pull request as draft initially, unless its complete.
  • Add tests to cover changes as needed.
  • Update documentation as needed.
  • If there is a related Issue, mention it in the description.

If you're adding a new blockchain

  • I have read the guidelines for adding a new blockchain.

Copy link

github-actions bot commented Jan 24, 2025

Binary size comparison

➡️ aarch64-apple-ios: 12.78 MB

➡️ aarch64-apple-ios-sim: 12.78 MB

➡️ aarch64-linux-android: 16.57 MB

➡️ armv7-linux-androideabi: 14.01 MB

➡️ wasm32-unknown-emscripten: 11.73 MB

gupnik
gupnik previously approved these changes Jan 27, 2025
src/XRP/Transaction.cpp Outdated Show resolved Hide resolved
@satoshiotomakan satoshiotomakan merged commit 8b6c042 into master Jan 27, 2025
14 checks passed
@satoshiotomakan satoshiotomakan deleted the s/xrp-non-standard-currency branch January 27, 2025 16:05
@Brindle79
Copy link

Xrp no started coin for deleing branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants